Example of Request and Response
Case #1 (by Batch ID):
Example request >>
{
"batch_id": 54321,
"product_line_ext_id": "1000001",
"items": [
{
"assort_ext_id": "1000101",
"unit_ext_id": "1000001",
"pack_ext_id": "1000002",
"cnt": 10000,
"items": [
{
"code": "00001",
"parent_code": "00003"
}, // pack-1 block-1
{
"code": "00002",
"parent_code": "00003"
}, // pack-2 block-1
{
"code": "00004",
"parent_code": "00006"
}, // pack-1 block-2
{
"code": "00005",
"parent_code": "00006"
} // pack-2 block-2
...
]
},
{
"assort_ext_id": "1000101",
"unit_ext_id": "1000002",
"pack_ext_id": "1000003",
"cnt": 500,
"items": [
{
"code": "00003",
"parent_code": "00007"
}, // block-1 box-1
{
"code": "00006",
"parent_code": "00007"
} // block-2 box-1
...
]
}
…
]
}
Example response <<
{
"status": "success",
"code": 0
}
Case #2 (by Department ID + Production line ID):
Example request >>
{
"depart_ext_id": "1000001",
"product_line_ext_id": "1000001",
"items": [
{
"assort_ext_id": "1000101",
"unit_ext_id": "1000001",
"pack_ext_id": "1000002",
"cnt": 10000,
"items": [
{
"code": "00001",
"parent_code": "00003"
}, // pack-1 block-1
{
"code": "00002",
"parent_code": "00003"
}, // pack-2 block-1
{
"code": "00004",
"parent_code": "00006"
}, // pack-1 block-2
{
"code": "00005",
"parent_code": "00006"
} // pack-2 block-2
...
]
},
{
"assort_ext_id": "1000101",
"unit_ext_id": "1000002",
"pack_ext_id": "1000003",
"cnt": 500,
"items": [
{
"code": "00003",
"parent_code": "00007"
}, // block-1 box-1
{
"code": "00006",
"parent_code": "00007"
} // block-2 box-1
...
]
}
…
]
}
Example response <<
{
"status": "success",
"code": 0
}
Case #3: (Example with a transport pallet):
>>
{
"depart_ext_id": "1000001",
"product_line_ext_id": "1000001",
"items": [
{
"assort_ext_id": "1000101",
"unit_ext_id": "1000001",
"cnt": 10000,
"items": [
{
"code": "00001",
"parent_code": "11111"
}, // MC-1 packed in a TP
{
"code": "00002",
"parent_code": "11111"
} // MC-2 packed in a TP
...
]
},
{
"assort_ext_id": "2000202",
"unit_ext_id": "2000011",
"cnt": 500,
"items": [
{
"code": "00003",
"parent_code": "11111"
}, // MC-3 packed in a TP
{
"code": "00004",
"parent_code": "11111"
} // MC-4 packed in a TP
...
]
},
{
"assort_id": 25,
"unit_id": 17,
"items": [
{
"code": "11111"
}
…
]
}
]
}
\<\<
{
"status": "success",
"code": 0
}
Note: For the packing of different goods, the possibility for a business entity to pack goods in a "transport pallet" during the packing process has been added. A transport pallet is a service hidden category in the T&T system, with an “assort_id” of 25 and a “unit_id” of 17. This transport pallet is also specified as a separate object in the array – see the example with a transport pallet.